/*
 * Copyright (C) 2015 Actor LLC. <https://actor.im>
 */


// Clearfix
@mixin clearfix() {
  &:after {
    display: table;
    clear: both;

    content: '';
  }
}

// White placholder for inputs
@mixin placeholder($color) {
  &::-webkit-input-placeholder {
    color: $color;
  }
  &::-moz-placeholder {
    color: $color;
  }
  &:-moz-placeholder {
    color: $color;
  }
  &:-ms-input-placeholder {
    color: $color;
  }
}

// Text overflow elipsis
@mixin text-elipsis() {
  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;
}

@mixin no-mp() {
  margin: 0;
  padding: 0;
}

@mixin no-select() {
  user-select: none;
  cursor: default !important;
}

@mixin textarea() {
  font-size: 15px;
  line-height: 20px;

  display: block;

  box-sizing: border-box;
  width: 100%;
  padding: 8px;

  resize: none;
  cursor: pointer;
  word-break: break-all;

  color: $greyish-brown;
  border: 1px solid $light-grey-blue;
  border-radius: 3px;
}

@mixin right-sidebar() {
  position: relative;
  z-index: 20;

  display: none;

  width: $activity-width;

  background-color: $activity-background-color;
  box-shadow: inset 1px 0 0 0 rgba(0, 0, 0, .04);
}

@mixin overlay() {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

@mixin app-sizes() {
  width: 100%;
  min-width: 650px;
  height: 100%;
  min-height: 400px;
};
